import request from '@/utils/request'

// 查询订单地址中间表列表
export function listOrderAddress(query) {
  return request({
    url: '/system/orderAddress/list',
    method: 'get',
    params: query
  })
}

// 查询订单地址中间表详细
export function getOrderAddress(id) {
  return request({
    url: '/system/orderAddress/' + id,
    method: 'get'
  })
}

// 新增订单地址中间表
export function addOrderAddress(data) {
  return request({
    url: '/system/orderAddress',
    method: 'post',
    data: data
  })
}

// 修改订单地址中间表
export function updateOrderAddress(data) {
  return request({
    url: '/system/orderAddress',
    method: 'put',
    data: data
  })
}

// 删除订单地址中间表
export function delOrderAddress(id) {
  return request({
    url: '/system/orderAddress/' + id,
    method: 'delete'
  })
}
